package com.ketai.dao;

import com.ketai.pojo.Organization;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author: 高伟华
 * @Description:
 * @Date:Create In 2022-08-06 11:33
 **/
public interface OrganizationDao {
    List<Organization>queryOrganizationList() throws SQLException, NamingException;
    //根据id删除
    int deleteOrganizationById(Integer id) throws SQLException, NamingException;

    int addOrganization(Organization organization) throws SQLException, NamingException;

    Organization organizationById(String id) throws SQLException, NamingException;

    int  checkedOrganization(String sql,Object[] params) throws SQLException, NamingException;
}
